Improve cross-compile support
authorHelmut Grohne <helmut@subdivi.de>
Tue, 5 Jan 2021 21:25:00 +0000 (22:25 +0100)
committerNoah Meyerhans <noahm@debian.org>
Sat, 17 Aug 2024 17:26:24 +0000 (13:26 -0400)
commitfb8c7dae777083709590dfbd922ddaee65499048
tree04249eba180637315b4aee55102f41806e0370ef
parent705c65a6e2f09f67e3e4de38229f8424928d9258
Improve cross-compile support

The check for the signedness of size_t really doesn't have to be run as
that is a compile time property.

Beyond that, dovecot uses mysql_config. I've looked into that and
mysql_config is unfixably broken during cross builds. It will not be
fixed. Instead, please use pkg-config. My patch implements that with a
fallback to mysql_config to avoid breaking other users.

Last but not least, src/lib-lua/Makefile.am adds $(LUA_LIBS) to
libdovecot_lua_la_DEPENDENCIES. As it happens, LUA_LIBS contains a -L
flag and when that flag shows up in a dependency, make gives up. I have
no clue why one would add LUA_LIBS to DEPENDENCIES as it already is
being correctly added to LIBADD. My patch suggests to quite simply drop
that.

Gbp-Pq: Name Improve-cross-compile-support.patch
m4/want_mysql.m4
src/lib-lua/Makefile.am